package cn.hpu.mobile_bank.mapper;

import cn.hpu.mobile_bank.domain.TransRecord;
import cn.hpu.mobile_bank.dto.resp.AccountNameAndRealNameDto;
import cn.hpu.mobile_bank.dto.resp.TransRecordList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author DELL
* @description 针对表【transrecord】的数据库操作Mapper
* @createDate 2024-06-20 17:16:33
* @Entity .domain.TransRecord
*/
public interface TransRecordMapper extends BaseMapper<TransRecord> {

    List<TransRecord> selectByAccountId(Integer accountId);

    List<TransRecord> selectByOtherId(Integer otherId);

    List<TransRecordList> getTransRecordListByAccountIdToOthers(Integer accountId);


    List<TransRecordList> getTransRecordListByOtherIdToMe(Integer accountId);

    List<TransRecord> getRecordToOther(Integer personId,String beginDate,String endDate,String minValue,String maxValue);

    List<TransRecord>  getRecordToMe(Integer personId,String beginDate,String endDate,String minValue,String maxValue);

}




